<?PHP
session_start();

require('../db/opendb.php');

include("FCKeditor/fckeditor.php");

$listing_id = $_GET['listing_id'];

require('template_functions.php');

require_once 'SOAP/Client.php';

$wsdl = new SOAP_WSDL('http://realivent.com/soap/soap.php?wsdl');

$googleProxy = $wsdl->getProxy();

$out = $googleProxy->get_Listing_Details($listing_id);

//Open the template file and get the code.

$output = get_code($out, $_GET['template'], $listing_id, $_SESSION['memberships']);

$output .= "<div align=center style='padding-left:5px; font-family:verdana; font-size:10px;'><img align=absmiddle src=http://www.realivent.com/poster/images/logo_thumb.jpg> Make your listings stand out, use Realivent.com's FREE online flyer creator. [<a href = http://www.realivent.com/ld.php>Realivent.com</a>]<img src='http://realivent.info/accounts/visit.php?lid=$listing_id&type=C' width='0' height='0' /></div>";
echo $output;
?>